package com.example.bili.controller;

import com.example.bili.entity.Follow;
import com.example.bili.service.FollowService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/flow")
public class FlowController {

    @Resource
    private FollowService followService;

    @PostMapping("/addFlow")
    public Object addFlow(@RequestBody Follow flow){
        return followService.addFlow(flow);
    }

    @GetMapping("/delFlow/{id}")
    public Object delFlow(@PathVariable int id){
        return followService.delFlow(id);
    }

}
